package com.ysd.shopcar.feign;

import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import com.ysd.shopcar.feign.impl.ProductFeginClientCallBack;


@FeignClient(name = "shop-service-product", 			//指定需要调用的微服务名称
fallback = ProductFeginClientCallBack.class)	//指定熔断：声明降级方法	
public interface ProductFeginClient {
	
	@RequestMapping(value = "/products/checkProduct", method = RequestMethod.GET)
	public Map<String, Object> checkProduct(@RequestParam String str);

}
